package cn.gzsxt.music.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;

import cn.gzsxt.music.query.HitSongQueryObject;

@Mapper
public interface HitSongMapper {
		
	@SelectProvider(type=HitSongProvider.class,method="getHitSongTotalByQo")
	Long selectHitSongTotalByCondition(HitSongQueryObject qo);
	
	@SelectProvider(type=HitSongProvider.class, method = "selectHitSongListByQo")
	List<Map<String, Object>> selectHitSongListByCondition(HitSongQueryObject qo);

	//保存热门歌曲
	@Update("update mc_singer set singer_hitSong = #{singer_hitSong} where singer_id = #{singer_id}")
	int updateHitSong(Map<String, Object> params);
			
}
